package com.lzx.adx.report.enums;

public enum EventTypeEnums {
    //转换类型【2新登，3，收购，4，次日留存，6，拉活UV,7拉活存单，8当日首购】

    register("2","register","注册"),
    firstPurchase("3","firstPurchase","24饿了吗注册24小时内首购，首笔订单"),
    retain("4","retain","次日留存"),

    reEngage("6","reEngage","拉活，唤醒"),

    preOrder("7","paid","拉活成单"),
    firstPurchase2("8","firstPurchase","4饿了吗注册后，在当日内首购，首笔订单"),

    ;


    private String elmCode;

    private String hwCode;

    private String msg;


    EventTypeEnums(String elmCode, String hwCode, String msg) {
        this.elmCode = elmCode;
        this.hwCode = hwCode;
        this.msg = msg;
    }

    public String getElmCode() {
        return elmCode;
    }

    public String getHwCode() {
        return hwCode;
    }

    public String getMsg() {
        return msg;
    }

    public static String getHwCode(String elmCode){
        for (EventTypeEnums value : EventTypeEnums.values()) {
            if(value.getElmCode().equals(elmCode)){
                return value.getHwCode();
            }
        }
        return  null;
    }

    public static void main(String[] args) {
        String hwCode1 = getHwCode("2");
        System.out.println(hwCode1);
    }
}
